package com.liushuai.eas.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liushuai.eas.pojo.Lesson;
import com.liushuai.eas.pojo.Timetable;

import java.util.List;
import java.util.Map;

public interface LessonMapper extends BaseMapper<Lesson> {

    //查询课表列表
    List<Timetable> queryLessonList(int pageBegin, int pageEnd, int classroomId, int courseId, int classId, int teacherId, String year);

    //删除课表
    int deleteTimetable(int courseId,int teacherId,int classId,int classroomId);

    //查询是否有课程冲突
    Lesson queryConflict(String year, int weeks, String week, String startTime, String endTime, int classroomId);

    //查询班级课表(按周查询)
    List<Lesson> queryClassLesson(int classId, int weeks, String year);

    //查询教师课表(按周查询)
    List<Lesson> queryTeacherLesson(int teacherId, int weeks, String year);

    //查询班级课程(按学年查询)
    List<Map<String,Object>> queryClassCourse(int classId);

}
